package snippet;

public class T344 {
	public static void main(String[] args) {
		char[] s= {'h','e','l','l','o'};
		new T344().reverseString(s);
		System.out.println(s);
	}
	 public void reverseString(char[] s) {
		 int l =s.length;
	        for (int i = 0; i < l/2; i++) {
	        	char t=s[i];
				s[i]=s[l-i-1];
				s[l-i-1]=t;
			}
	    }
}
